<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
  <link rel="stylesheet" href="../src/tuitui-ui.css">
  <link rel="stylesheet" href="../src/input.css">
  <title>表单元素</title>
</head>

<body>
  <div class="tt-content">
    <!-- 基本输入框 -->
    <h1 class="tt-panel-title">基本输入框:</h1>
    <div class="tt-panel-body no-padding">
      <div class="tt-form-item">
        <label class="tt-form-label">用户名</label>
        <div class="tt-form-body">
          <input class="tt-input" type="text" placeholder="请输入姓名" />
        </div>
      </div>
      <div class="tt-form-item">
        <label class="tt-form-label">密码</label>
        <div class="tt-form-body">
          <input class="tt-input" type="password" placeholder="请输入密码" />
        </div>
      </div>
      <div class="tt-form-item">
        <label class="tt-form-label">日期</label>
        <div class="tt-form-body">
          <input class="tt-input" type="date" placeholder="请选择日期" />
        </div>
      </div>
    </div>
    <!-- 带清空按钮的输入框 -->
    <h1 class="tt-panel-title">带清空功能的输入框:</h1>
    <div class="tt-panel-body no-padding">
      <div class="tt-form-item">
        <label class="tt-form-label">手机号</label>
        <div class="tt-form-body">
          <input class="tt-input" type="text" placeholder="请输入手机号" />
          <i class="fa fa-close tt-input-reset"></i>
        </div>
      </div>
    </div>
    <!-- 带错误提示的输入框 -->
    <h1 class="tt-panel-title">带错误提示的输入框:</h1>
    <div class="tt-panel-body no-padding">
      <div class="tt-form-item">
        <label class="tt-form-label">邮箱</label>
        <div class="tt-form-body">
          <input class="tt-input" type="text" placeholder="请输入邮箱" />
          <i class="fa fa-exclamation tt-input-warning"></i>
        </div>
      </div>
    </div>
    <!-- 单选输入 -->
    <h1 class="tt-panel-title">单选:</h1>
    <div class="tt-panel-body no-padding">
      <div class="tt-form-item">
        <div class="tt-radio">
          <i class="fa fa-check tt-radio-icon"></i>
          <span class="tt-radio-desc">单选选项1</span>
          <input class="tt-radio-input" type="radio">
        </div>
      </div>
      <div class="tt-form-item">
        <div class="tt-radio checked">
          <i class="fa fa-check tt-radio-icon"></i>
          <span class="tt-radio-desc">单选选项2</span>
          <input class="tt-radio-input" type="radio">
        </div>
      </div>
      <div class="tt-form-item">
        <div class="tt-radio">
          <i class="fa fa-check tt-radio-icon"></i>
          <span class="tt-radio-desc">单选选项3</span>
          <input class="tt-radio-input" type="radio">
        </div>
      </div>
    </div>
  </div>
</body>

</html>